window.onscroll = function() {
	var a = document.documentElement.scrollTop;
	var lbydhk = document.getElementById("lbydhk");
	var lbydh = document.getElementById("lby-dh");
	var lbyvar = document.getElementById("lby-ver");
	if(a >= 200) {
		lbydhk.style = "position:fixed;width: 100%;z-index: 1000;bottom:0.8rem;";
		lbydh.src = 'img/浮动导航.png';
		lbydh.style.marginTop = "-0.5rem";
	} else {
		lbydhk.style = "width: 100%;";
		lbydh.src = 'img/导航.png';
		lbydh.style.marginTop = "";
	}
	var lbypa = document.getElementById("lby-p-a");
	var bypa = document.getElementById("by-pa");
	var bypb = document.getElementById("by-pb");
	var bypc = document.getElementById("by-pc");
	var lbypaa = document.getElementById("lby-p-aa");
	var lbypaaa = document.getElementById("lby-p-aaa");
	var lbypb = document.getElementById("lby-p-b");
	var lbypbb = document.getElementById("lby-p-bb");
	var lbypbbb = document.getElementById("lby-p-bbb");
	var lbypc = document.getElementById("lby-p-c");
	var lbypcc = document.getElementById("lby-p-cc");
	var lbypccc = document.getElementById("lby-p-ccc");
	var lbyimga = document.getElementById("lby-img-a");
	var lbyimgb = document.getElementById("lby-img-b");
	var lbyimgc = document.getElementById("lby-img-c");
	var lbycenterdp = document.getElementById("lby-center-d-p");
	var p = lbycenterdp.getElementsByTagName("p");
	if(a >= 600) {
		lbypa.style.marginLeft = '0px';
		lbypa.style.opacity = '1';
		time = setInterval(
			function() {
				lbyimga.style.opacity = '1';
				lbypb.style.marginLeft = '0px';
				lbypb.style.opacity = '1';
				clearInterval(time);
			}, 100)
		timea = setInterval(function() {
			lbypc.style.marginLeft = '0px';
			lbypc.style.opacity = '1';
			clearInterval(timea);
			bypa.style.marginLeft = "0px";
			bypa.style.opacity = "1";
		}, 200)
	}
	if(a >= 700) {
		lbypaa.style.marginLeft = '0px';
		lbypaa.style.opacity = '1';
		timeb = setInterval(
			function() {
				lbyimgb.style.opacity = '1';
				lbypbb.style.marginLeft = '0px';
				lbypbb.style.opacity = '1';
				clearInterval(timeb);
			}, 100)
		timec = setInterval(function() {
			lbypcc.style.marginLeft = '0px';
			lbypcc.style.opacity = '1';
			clearInterval(timec);
			bypb.style.marginLeft = "0px";
			bypb.style.opacity = "1";
		}, 200)
	}
	if(a >= 800) {
		lbypaaa.style.marginLeft = '0px';
		lbypaaa.style.opacity = '1';
		timed = setInterval(
			function() {
				lbyimgc.style.opacity = '1';
				lbypbbb.style.marginLeft = '0px';
				lbypbbb.style.opacity = '1';
				clearInterval(timed);
			}, 100)
		timee = setInterval(function() {
			lbypccc.style.marginLeft = '0px';
			lbypccc.style.opacity = '1';
			clearInterval(timee);
			bypc.style.marginLeft = "0px";
			bypc.style.opacity = "1";
			asdc = setInterval(function() {
				lbyvar.style.marginTop = '';
				clearInterval(asdc);
			}, 1000)
		}, 200)
	}

	var i = -1;
	var lbyaas = document.getElementById("lby-aas");
	if(a >= 350) {
		timezx = setInterval(function() {
			if(i <= 144) {
				i++;
				lbyaas.style.marginLeft = '0.4rem';
				lbyaas.style.opacity = '1';
				p[i].style.display = "inline-block";
			} else {
				clearInterval(timezx);
			}
		}, 30)
	}
}

